/*
** prototypes.h for  in /home/gomes_m//my-project-a-moi/client
** 
** Made by mickael gomes
** Login   <gomes_m@epitech.net>
** 
** Started on  Mon Jul 29 14:21:40 2013 mickael gomes
** Last update Wed Jul 31 00:31:48 2013 mickael gomes
*/

#ifndef			PROTOTYPES_H_
# define		PROTOTYPES_H_

# define		PATH "PATH="
# define		HOME "/home/gomes_m/my-project-a-moi/client/repo"

void			send_closing(int);
void			get_signal();
void			display_current_dir(t_socket *, t_cmd *);
void			init_socket(t_socket *, char *, int);
int			check_cmd(char *);
void			send_cmd(char *, t_socket *);
void			server_response(t_socket*, t_cmd *);
void			get_cmd(t_cmd *, t_socket *);
void			xread(int, char *, int);
int			xwrite(int, char *, int);
void			*xmalloc(int);
struct protoent		*xgetprotobyname(char *);
int			xsocket(int, int, int);
int			xatoi(char *);
void			xclose(int);
void			my_putstr(int, char *, int);
char			**my_str_to_wordtab(char *);
int			my_strcmp(char *, char *);
char			*check_port_validity(char *);
char			*check_ip_validity(char *);
int			my_strlen(char *);
void			do_cmd(t_cmd *);
void			get_fork(t_cmd *, t_socket *);
char			*get_first_part(char *);
char			*get_remains(char *);
char			**get_env_paths(char **);
int			my_strncmp(char *, char *, int);
char			**my_str_to_wordtab_plus(char *);
char			*my_strcat_plus(char *, char *, char);
int			tab_len(char **);
int			get_how_many_chars(char *);
char			*treat_buff(char *);
void			my_cd(t_cmd *, t_socket *);
int			treat_local(char *, t_cmd *);
void			init_cmd(t_cmd *, char **);
void			transfert(t_cmd *, t_socket *);
char			*my_strcat_plus(char *, char *, char);

# endif			/* !PROTOTYPES_H_ */
